﻿using Snowflake.Core;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Homework.Domain.Dto
{
    public  class ProductDto
    {
        /// <summary>
        /// 商品表主键
        /// </summary>
        [Key]
        public Guid ProductId { get; set; } = new Guid();
        /// <summary>
        /// 商品名称
        /// </summary>
        [StringLength(60)]
        public string ProductName { get; set; }
        /// <summary>
        /// 商品编号
        /// </summary>
        [StringLength(60)]
        public string ProductNumber { get; set; } = new IdWorker(1, 1).NextId().ToString();
    }
}
